Skip to content

refactor: clarify auth monorepo as php/ + ui/ packages#13

Merged
bherila merged 3 commits into
mainfrom
refactor/auth-monorepo-layout
Jun 12, 2026
Merged

refactor: clarify auth monorepo as php/ + ui/ packages#13
bherila merged 3 commits into
mainfrom
refactor/auth-monorepo-layout

Conversation

@bherila

@bherila bherila commented Jun 12, 2026

Copy link
Copy Markdown
Owner

Context

auth ships two independently-published packages, but the old layout obscured that and a CI proposal had tried to treat the repo as a single Laravel app:

  • PHPbherila/auth-laravel (type: library), consumed by 5 downstream apps via a Composer VCS repository at the repo root.
  • JSbwh-auth (React/WebAuthn), consumed via a GitHub release tarball.

There was also a duplicate laravel/composer.json (+ lockfile) re-declaring the same package, which nothing referenced.

Changes

  • Rename laravel/php/ for the PHP package source. The published manifest stays at the repo root (Composer VCS resolution requires it there), so package identity is unchanged.
  • Delete the duplicate nested laravel/composer.json + composer.lock. Root composer.json is now the single PHP manifest.
  • Repoint root composer.json PSR-4 (php/src, php/tests) + phpunit.xml; update .gitignore (php/vendor/) and README references.
  • Replace test.yml with a two-job, path-filtered ci.yml: a PHP job (composer test) and a JS job (bwh-auth typecheck + build), with concurrency cancel on non-main. No Laravel-app env/build steps (which never applied here).

Consumer impact

None required. Package name, VCS URL, and ^0.4 constraint are unchanged — downstream apps pick up the next tag on a normal composer update. ui/ did not move, so the bwh-auth tarball is unaffected.

Verification (local)

  • composer install && composer testPHPUnit 33/33 green on php/.
  • pnpm install --frozen-lockfile + pnpm --filter bwh-auth run typecheck + buildgreen.
  • AuthServiceProvider loads config/routes/views/migrations via __DIR__ relatives — unaffected by the move.

🤖 Generated with Claude Code

bherila and others added 2 commits June 12, 2026 00:08
auth ships two independently-published packages; the layout obscured this.

- Rename laravel/ -> php/ (source for the bherila/auth-laravel Composer package).
  The published manifest stays at the repo root (required for Composer VCS
  resolution by downstream apps); only the internal source path moves.
- Delete the duplicate nested laravel/composer.json + composer.lock, which
  re-declared the same package and was unreferenced. Root composer.json is now
  the single PHP manifest.
- Repoint root composer.json PSR-4 (php/src, php/tests) and phpunit.xml; update
  .gitignore (php/vendor/) and README references.
- Replace the single-job test.yml with a two-job, path-filtered ci.yml: a PHP
  job (composer test) and a JS job (bwh-auth typecheck + build). No app-style
  Laravel-env/build steps, which never applied to this package repo.

Verified locally: PHPUnit 33/33 green on php/, bwh-auth typecheck + build green.
No change to package identities, so downstream consumers need no edits.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
pnpm/action-setup@v6 requires a version when no root packageManager field
exists (auth has none at repo root). Pins version: 10.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@bherila bherila force-pushed the refactor/auth-monorepo-layout branch from 6300e86 to 8d76e69 Compare June 12, 2026 07:33
Match the local dev runtime (8.5.x) and the team standard of validating on 8.5.
8.5 satisfies the package's composer ^8.2 constraint.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@bherila

bherila commented Jun 12, 2026

Copy link
Copy Markdown
Owner Author

@codex review this PR exhaustively

@bherila bherila merged commit 3107848 into main Jun 12, 2026
4 checks passed
@bherila bherila deleted the refactor/auth-monorepo-layout branch June 12, 2026 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant